'''
九九乘法表和对象数组练习
'''
import math

for i in range(1, 10):
    for j in range(1, i + 1):
        print(f'{i}*{j}=', i * j, end='\t')
    print()


length = 9

for i in range(math.ceil(length / 2)):
    for j in range(length):
        if j < (math.floor(length / 2) - i) or j > (math.floor(length / 2) + i):
            print(' ', end=' ')
        else:
            print('*', end=' ')
    print()
